-- GENERATED SPELL FOR [Black Conrad's Ghost] --


function spell0_24790(pUnit, Event) --@Blade Flurry,Self--
pUnit:FullCastSpellOnTarget(51211,pUnit)
pUnit:RegisterEvent('Sorts_24790', 15309, 1)
end

function spell1_24790(pUnit, Event) --@Ghostly Strike,n/a--
pUnit:FullCastSpellOnTarget(31022,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24790', 7000, 1)
end

function Sorts_24790(pUnit, Event)
local choix_sorts_24790 = math.random(0, 1)
if choix_sorts_24790 == 0 then
pUnit:RegisterEvent('spell0_24790', 1, 1)
end
if choix_sorts_24790 == 1 then
pUnit:RegisterEvent('spell1_24790', 1, 1)
end
end

function mob24790_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24790', math.random(1500, 3000), 1)
end

function mob24790_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24790_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24790_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24790, 1, 'mob24790_Action')
RegisterUnitEvent(24790, 2, 'mob24790_Leave')
RegisterUnitEvent(24790, 3, 'mob24790_Kill')
RegisterUnitEvent(24790, 4, 'mob24790_Die')
